﻿@model bool
@{
    ViewBag.Title = "Login";
}
@{
}
@section styles
{
    <link rel="stylesheet" href="@Url.Content("~/Content/css/login.css")" />
}
<div id="loginContainer" class="span4 offset1">
    <form id='loginForm' method="post" action="@Url.Action("Login")">
        <legend>Login</legend>
        <input type="hidden" id="returnUrl" name="returnUrl" />
         <div style="display:@(Model ? "inline-block" : "none")" class="alert alert-error">
            Invalid username or password. Please try again.</div>
            <input id="userNameTextBox" name="username" class="required" type="text" data-field="username" placeholder="Username" />
            <input id="passwordTextBox" name="password" class="required" type="password" data-field="password" placeholder="Password" />
            <br />
            <input type="submit" class="button" value="Log In"/>
    </form>
</div>
@section scripts
{
    <script src="@Url.Content("~/js/login.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.js")" type="text/javascript"></script>
}
